/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rational.parser.expression;

/**
 *
 * @author Overmind
 */
public class ScopeCounter
{
    private int scopeCount;
    
    public ScopeCounter()
    {
        scopeCount = 0;
    }
    
    public int getScopeCount()
    {
        return scopeCount;
    }
    
    public boolean isZero()
    {
        return scopeCount == 0;
    }
    
    public void increment()
    {
        ++scopeCount;
    }
    
    public void decremnet()
    {
        --scopeCount;
    }
}
